package com.dreamlin.lindownload;

import com.dreamlin.lindownload.entity.LinTaskBean;

/**
 * <p> Title: LinDownloadListener </p>
 * <p> Description: </p>
 *
 * @author: dreamlin
 * @date: 2020/5/5
 * @version: V1.0.0
 * Created by dreamlin on 2020/5/5.
 */
public interface LinDownloadListener {

    void onTaskWait(LinTaskBean linTaskBean);

    void onTaskStart(LinTaskBean linTaskBean);

    void onTaskProgress(LinTaskBean linTaskBean, long finished, long total, String speed);

    void onTaskSuccess(LinTaskBean linTaskBean);

    void onTaskFailed(LinTaskBean linTaskBean);

    void onTaskPause(LinTaskBean linTaskBean);

    void onTaskCancel(LinTaskBean linTaskBean);

    void onTaskRetry(LinTaskBean linTaskBean);

}
